<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>B站视频模块</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4267181_2gx3pujvub2.css" />
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .box {
        position: relative;
        width: 280px;
        height: 250px;
        background-color: #ccc;
        margin: 100px auto;
      }

      .box .page {
        width: 100%;
      }

      .box h4 {
        font-size: 16px;
        font-weight: normal;
        padding: 15px;
      }

      .box p {
        font-size: 12px;
        padding: 0 15px;
      }

      .box .play {
        display: none;
        position: absolute;
        top: 10px;
        right: 10px;
        color: #ccc;
        font-size: 35px;
      }

      /* .box .play {
        position: absolute;
        width: 35px;
        height: 35px;
        background: url(../img/bofang.png) no-repeat;
        top: 10px;
        right: 10px;
      } */

      .box:hover .play {
        display: block;
      }

      /* 
          总结:
          在实际开发中,子元素一般是绝对定位,而父元素一般是相对定位,这样才能让父元素可以合理的布局在页面上,而
          父元素内部的子元素可以随意移动在父元素内部并且压住其他盒子 ----- 子绝父相
       */
    </style>
  </head>
  <body>
    <div class="box">
      <!-- <img class="play" src="../img/bofang.png" alt="" /> -->
      <em class="play iconfont icon-bofangqi-bofang"></em>
      <img class="page" src="../img/gameboy.jpg" alt="" />
      <h4>1KG！旗舰Win掌机 | AYANEO KUN全面测评</h4>
      <p>会弹钢琴的疯疯· 9-24</p>
    </div>
  </body>
</html>
